﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/// <summary>
/// 字符串扩展类
/// </summary>
public static class StringExtensions
{
    public static bool IsNullOrWhiteSpace(this string str)
    {
        return string.IsNullOrWhiteSpace(str);
    }


    public static DateTime ToDateTime(this string str)
    {
        return Convert.ToDateTime(str);
    }

    public static int ToInt32(this string str)
    {
        return Convert.ToInt32(str);
    }
}

